home *** CD-ROM | disk | FTP | other *** search
- #include <graphics/text.h>
-
- static char fontname[] = "lcd-digits.font";
-
- static UWORD CharData[] = {
- 0x7fdb,0xfe7f,0xd80d,0xff3f,0xe7fc,0xff9f,0xf000,0x0000,
- 0xfff9,0xffff,0xf80f,0xfe7f,0xffff,0xffff,0xf800,0x0000,
- 0xc078,0x0300,0x780f,0x0060,0x0007,0x80f0,0x1800,0x0000,
- 0xc078,0x0300,0x780f,0x0060,0x0007,0x80f0,0x1e00,0x0000,
- 0xc078,0x0300,0x780f,0x0060,0x0007,0x80f0,0x1e00,0x0000,
- 0xc07b,0xffff,0xdfff,0xff7f,0xe007,0xffff,0xf9ff,0x0000,
- 0xc07f,0xfeff,0xcffd,0xffff,0xf006,0xff9f,0xf9ff,0x0000,
- 0xc07e,0x0000,0x600c,0x01e0,0x3007,0x80c0,0x1800,0x0000,
- 0xc07e,0x0000,0x600c,0x01e0,0x3007,0x80c0,0x1e00,0x0000,
- 0xc07e,0x0000,0x600c,0x01e0,0x3007,0x80c0,0x1e00,0x0000,
- 0xffff,0xffff,0xe00d,0xffff,0xf007,0xffff,0xf800,0x0000,
- 0x7fdb,0xfe7f,0xc00c,0xff1f,0xe004,0xff9f,0xf000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- };
-
- static ULONG CharLoc[] = {
- 0x0000000b,0x000b0002,0x000d000b,0x0018000b,
- 0x0023000b,0x002e000b,0x0039000b,0x0044000b,
- 0x004f000b,0x005a000b,0x00650002,0x0067000b,
- };
-
- static UWORD CharSpace[] = {
- 0x000d,0x0004,0x000d,0x000d,0x000d,0x000d,0x000d,0x000d,
- 0x000d,0x000d,0x0004,0x000d,
- };
-
- static UWORD CharKern[] = {
- 0x0000,0x0009,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
- 0x0000,0x0000,0x0000,0x0000,
- };
-
- struct TextFont digitsFont = {
- { /* Message */
- { /* Node */
- NULL, /* ln_Succ */
- NULL, /* ln_Pred */
- NT_FONT, /* ln_Type */
- 0, /* ln_Pri */
- fontname, /* ln_Name */
- },
- NULL, /* mn_ReplyPort */
- sizeof (digitsFont) +
- sizeof (fontname) +
- sizeof (CharData) +
- sizeof (CharLoc) +
- sizeof (CharSpace) +
- sizeof (CharKern) +
- 0, /* mn_Length */
- },
- 13, /* tf_YSize */
- 0, /* tf_Style */
- 98, /* tf_Flags */
- 21, /* tf_XSize */
- 12, /* tf_Baseline */
- 1, /* tf_BoldSmear */
- 0, /* tf_Accessors */
- 48, /* tf_LoChar */
- 59, /* tf_HiChar */
- (APTR)&CharData,/* tf_CharData */
- 16, /* tf_Modulo */
- (APTR)&CharLoc, /* tf_CharLoc */
- (APTR)&CharSpace,/*tf_CharSpace */
- (APTR)&CharKern,/* tf_CharKern */
- };
-